package com.example.demo.information.repository;

import com.example.demo.information.entity.Photo;
import com.example.demo.information.entity.School;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface PhotoRepository extends JpaRepository<Photo,Long> {

    List<Photo> findByXsxxIdAndStatusOrderByLrsjDesc(Long xsxxId, Integer status);

    Photo findByXsxxIdAndXxxxIdAndBjxxId(Long xsxxId, Long xxxxId, Long bjxxId);
}
